/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package clientereligadora.formularios;

import clientereligadora.conexao.Conexao;
import clientereligadora.entidades.Configuracao;
import clientereligadora.operacoes.Operacao;
import com.mysql.jdbc.ResultSet;
import com.mysql.jdbc.Statement;
import java.awt.Cursor;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyEvent;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;

/**
 *
 * @author leandro.aquino
 */
public class FormConfiguracao extends javax.swing.JFrame {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss.SS");
    Operacao operacao = new Operacao();
   Image im = new ImageIcon ( getClass ( ).getResource ("/imagens/fundo.jpg") ).getImage ( ); 
    ResultSet rs;
    Statement stmt;
     int idReligadora = 5;
  //  String path = "/imagens/fundo.jpg";

    /**
     * Creates new form FormConfiguracao
     */
    public FormConfiguracao() {
          
        initComponents();
         
          consultaIdReligadora();
          setLocationRelativeTo(this);
 
        
    }
    
     public void consultaIdReligadora() {
        String command = "SELECT *  FROM dataserverreligadora.configuracao ";

        try {
            stmt = (Statement) Conexao.conn.createStatement();

            rs = (ResultSet) stmt.executeQuery(command);
            //grava fields
        } catch (SQLException e) {
            System.out.println(e);
        }
    }
    public void paintComponent(Graphics g) {
         paintComponent(g);
        int x = (this.getWidth() - im.getWidth(null)) / 2;
        int y = (this.getHeight() - im.getHeight(null)) / 2;
        g.drawImage(im, x, y, this);
    }
       
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        painelFundo = new javax.swing.JPanel();
        painel = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        txt_ncsot = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        txt_ncsut = new javax.swing.JTextField();
        txt_id = new javax.swing.JTextField();
        txt_idReligadora = new javax.swing.JTextField();
        txt_opmode = new javax.swing.JTextField();
        txt_ka = new javax.swing.JTextField();
        txt_lalsoc = new javax.swing.JTextField();
        txt_ptrafo = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        txt_cserv = new javax.swing.JTextField();
        txt_is = new javax.swing.JTextField();
        txt_cneutromax = new javax.swing.JTextField();
        txt_ncsc = new javax.swing.JTextField();
        txt_cmax = new javax.swing.JTextField();
        txt_cneutro = new javax.swing.JTextField();
        txt_ccurto = new javax.swing.JTextField();
        txt_icc = new javax.swing.JTextField();
        txt_mca = new javax.swing.JTextField();
        jLabel48 = new javax.swing.JLabel();
        jLabel49 = new javax.swing.JLabel();
        jLabel50 = new javax.swing.JLabel();
        jLabel51 = new javax.swing.JLabel();
        txt_subtensaorearme = new javax.swing.JTextField();
        txt_correnteaviso = new javax.swing.JTextField();
        txt_sobretensaoaviso = new javax.swing.JTextField();
        txt_subtensaoaviso = new javax.swing.JTextField();
        txt_subtensaodesarme = new javax.swing.JTextField();
        txt_lacsoc = new javax.swing.JTextField();
        txt_carrenterearme = new javax.swing.JTextField();
        txt_pacpot = new javax.swing.JTextField();
        txt_sobretensaorearme = new javax.swing.JTextField();
        jLabel52 = new javax.swing.JLabel();
        txt_correntedesarme = new javax.swing.JTextField();
        jLabel53 = new javax.swing.JLabel();
        jLabel54 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        jLabel56 = new javax.swing.JLabel();
        jLabel57 = new javax.swing.JLabel();
        jLabel58 = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        txt_sobretensaodesarme = new javax.swing.JTextField();
        jLabel60 = new javax.swing.JLabel();
        jLabel61 = new javax.swing.JLabel();
        jLabel62 = new javax.swing.JLabel();
        jLabel63 = new javax.swing.JLabel();
        jLabel64 = new javax.swing.JLabel();
        txt_NreligamentoCorrente = new javax.swing.JTextField();
        txt_sobrecargadesarme = new javax.swing.JTextField();
        txt_TReligamentoNorTens = new javax.swing.JTextField();
        txt_correntenDesarme = new javax.swing.JTextField();
        txt_correntenRearme = new javax.swing.JTextField();
        jLabel65 = new javax.swing.JLabel();
        jLabel66 = new javax.swing.JLabel();
        jSeparator4 = new javax.swing.JSeparator();
        txt_faltafasedesarme = new javax.swing.JTextField();
        txt_faltafaseaviso = new javax.swing.JTextField();
        jLabel67 = new javax.swing.JLabel();
        jLabel68 = new javax.swing.JLabel();
        txt_inrush = new javax.swing.JTextField();
        jLabel69 = new javax.swing.JLabel();
        jLabel70 = new javax.swing.JLabel();
        txt_faltafaserearme = new javax.swing.JTextField();
        jLabel71 = new javax.swing.JLabel();
        txt_sobrecargaaviso = new javax.swing.JTextField();
        txt_correntenAviso = new javax.swing.JTextField();
        jLabel72 = new javax.swing.JLabel();
        txt_vmax = new javax.swing.JTextField();
        jLabel73 = new javax.swing.JLabel();
        txt_sobrecargarearme = new javax.swing.JTextField();
        jLabel74 = new javax.swing.JLabel();
        jLabel75 = new javax.swing.JLabel();
        jLabel76 = new javax.swing.JLabel();
        jLabel77 = new javax.swing.JLabel();
        jLabel79 = new javax.swing.JLabel();
        jSeparator5 = new javax.swing.JSeparator();
        txt_limiteSubTensao = new javax.swing.JTextField();
        txt_limitesobretensao = new javax.swing.JTextField();
        txt_status = new javax.swing.JTextField();
        txt_data = new javax.swing.JTextField();
        jLabel88 = new javax.swing.JLabel();
        jLabel78 = new javax.swing.JLabel();
        txt_intervalo1 = new javax.swing.JTextField();
        jLabel80 = new javax.swing.JLabel();
        txt_intervalo2 = new javax.swing.JTextField();
        jLabel81 = new javax.swing.JLabel();
        txt_intervalo3 = new javax.swing.JTextField();
        jLabel82 = new javax.swing.JLabel();
        txt_intervalo4 = new javax.swing.JTextField();
        jLabel83 = new javax.swing.JLabel();
        txt_intervalo5 = new javax.swing.JTextField();
        jLabel84 = new javax.swing.JLabel();
        txt_TLatenciaReligamento = new javax.swing.JTextField();
        txt_intMed = new javax.swing.JTextField();
        jLabel85 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("CONFIGURAR RELIGADORA");
        setBackground(new java.awt.Color(255, 255, 255));

        painel.setBackground(new java.awt.Color(255, 255, 255));
        painel.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        jLabel8.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel8.setForeground(new java.awt.Color(0, 0, 109));
        jLabel8.setText("_is:");

        jLabel9.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel9.setForeground(new java.awt.Color(0, 0, 109));
        jLabel9.setText("Cserv:");

        jLabel6.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(0, 0, 109));
        jLabel6.setText("Mca:");

        jLabel7.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel7.setForeground(new java.awt.Color(0, 0, 109));
        jLabel7.setText("Icc:");

        jLabel12.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel12.setForeground(new java.awt.Color(0, 0, 109));
        jLabel12.setText("ncsc:");

        jLabel10.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel10.setForeground(new java.awt.Color(0, 0, 109));
        jLabel10.setText("Cmax:");

        jLabel11.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel11.setForeground(new java.awt.Color(0, 0, 109));
        jLabel11.setText("Ccurto:");

        txt_ncsot.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_ncsot.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_ncsotKeyPressed(evt);
            }
        });

        jLabel15.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel15.setForeground(new java.awt.Color(0, 0, 109));
        jLabel15.setText("Ncsot");

        jLabel14.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel14.setForeground(new java.awt.Color(0, 0, 109));
        jLabel14.setText("CneutroMax:");

        jLabel13.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel13.setForeground(new java.awt.Color(0, 0, 109));
        jLabel13.setText("Cneutro:");

        jLabel29.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel29.setForeground(new java.awt.Color(0, 0, 109));
        jLabel29.setText("Lalsoc:");

        jLabel28.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel28.setForeground(new java.awt.Color(0, 0, 109));
        jLabel28.setText("Ptrafo:");

        jLabel1.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(0, 0, 109));
        jLabel1.setText("ID:");

        jLabel3.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(0, 0, 109));
        jLabel3.setText("ID Religadora:");

        jLabel5.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel5.setForeground(new java.awt.Color(0, 0, 109));
        jLabel5.setText("Ka");

        jLabel4.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel4.setForeground(new java.awt.Color(0, 0, 109));
        jLabel4.setText("Modo de Operacao:");

        txt_ncsut.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_ncsut.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_ncsutKeyPressed(evt);
            }
        });

        txt_id.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_id.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_idKeyPressed(evt);
            }
        });

        txt_idReligadora.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_idReligadora.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_idReligadoraKeyPressed(evt);
            }
        });

        txt_opmode.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_opmode.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_opmodeKeyPressed(evt);
            }
        });

        txt_ka.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_ka.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_kaKeyPressed(evt);
            }
        });

        txt_lalsoc.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_lalsoc.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_lalsocKeyPressed(evt);
            }
        });

        txt_ptrafo.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_ptrafo.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_ptrafoKeyPressed(evt);
            }
        });

        jLabel16.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel16.setForeground(new java.awt.Color(0, 0, 109));
        jLabel16.setText("Ncsut:");

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);

        txt_cserv.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cserv.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cservKeyPressed(evt);
            }
        });

        txt_is.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_is.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_isKeyPressed(evt);
            }
        });

        txt_cneutromax.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cneutromax.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cneutromaxKeyPressed(evt);
            }
        });

        txt_ncsc.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_ncsc.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_ncscKeyPressed(evt);
            }
        });

        txt_cmax.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cmax.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cmaxKeyPressed(evt);
            }
        });

        txt_cneutro.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_cneutro.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_cneutroKeyPressed(evt);
            }
        });

        txt_ccurto.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_ccurto.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_ccurtoKeyPressed(evt);
            }
        });

        txt_icc.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_icc.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_iccKeyPressed(evt);
            }
        });

        txt_mca.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_mca.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_mcaKeyPressed(evt);
            }
        });

        jLabel48.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/2-1.png"))); // NOI18N
        jLabel48.setText("jLabel48");
        jLabel48.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel48MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel48MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel48MouseExited(evt);
            }
        });

        jLabel49.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/3-1.png"))); // NOI18N
        jLabel49.setText("jLabel48");
        jLabel49.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel49MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel49MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel49MouseExited(evt);
            }
        });

        jLabel50.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/1-1.png"))); // NOI18N
        jLabel50.setText("jLabel48");
        jLabel50.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel50MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel50MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel50MouseExited(evt);
            }
        });

        jLabel51.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/4-1.png"))); // NOI18N
        jLabel51.setText("jLabel48");
        jLabel51.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel51MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel51MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabel51MouseExited(evt);
            }
        });

        txt_subtensaorearme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_subtensaorearme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_subtensaorearmeKeyPressed(evt);
            }
        });

        txt_correnteaviso.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_correnteaviso.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_correnteavisoKeyPressed(evt);
            }
        });

        txt_sobretensaoaviso.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_sobretensaoaviso.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_sobretensaoavisoKeyPressed(evt);
            }
        });

        txt_subtensaoaviso.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_subtensaoaviso.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_subtensaoavisoKeyPressed(evt);
            }
        });

        txt_subtensaodesarme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_subtensaodesarme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_subtensaodesarmeKeyPressed(evt);
            }
        });

        txt_lacsoc.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_lacsoc.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_lacsocKeyPressed(evt);
            }
        });

        txt_carrenterearme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_carrenterearme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_carrenterearmeKeyPressed(evt);
            }
        });

        txt_pacpot.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_pacpot.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_pacpotKeyPressed(evt);
            }
        });

        txt_sobretensaorearme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_sobretensaorearme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_sobretensaorearmeKeyPressed(evt);
            }
        });

        jLabel52.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel52.setForeground(new java.awt.Color(0, 0, 109));
        jLabel52.setText("Sobre Tensao Rearme:");

        txt_correntedesarme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_correntedesarme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_correntedesarmeKeyPressed(evt);
            }
        });

        jLabel53.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel53.setForeground(new java.awt.Color(0, 0, 109));
        jLabel53.setText("Corrente aviso:");

        jLabel54.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel54.setForeground(new java.awt.Color(0, 0, 109));
        jLabel54.setText("Pacpot:");

        jLabel55.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel55.setForeground(new java.awt.Color(0, 0, 109));
        jLabel55.setText("Sobre Tensao Aviso:");

        jLabel56.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel56.setForeground(new java.awt.Color(0, 0, 109));
        jLabel56.setText("Corrente Rearme:");

        jLabel57.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel57.setForeground(new java.awt.Color(0, 0, 109));
        jLabel57.setText("Sub Tensao Aviso:");

        jLabel58.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel58.setForeground(new java.awt.Color(0, 0, 109));
        jLabel58.setText("Lacsoc:");

        jLabel59.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel59.setForeground(new java.awt.Color(0, 0, 109));
        jLabel59.setText("Corrente Desarme:");

        txt_sobretensaodesarme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_sobretensaodesarme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_sobretensaodesarmeKeyPressed(evt);
            }
        });

        jLabel60.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel60.setForeground(new java.awt.Color(0, 0, 109));
        jLabel60.setText("Sobre Tensao Desarme:");

        jLabel61.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel61.setForeground(new java.awt.Color(0, 0, 109));
        jLabel61.setText("Sub Tensao Rearme:");

        jLabel62.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel62.setForeground(new java.awt.Color(0, 0, 109));
        jLabel62.setText("Sub Tensao Desarme:");

        jLabel63.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel63.setForeground(new java.awt.Color(0, 0, 109));
        jLabel63.setText("Falta Fase Aviso:");

        jLabel64.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel64.setForeground(new java.awt.Color(0, 0, 109));
        jLabel64.setText("Falta Fase Desarme:");

        txt_NreligamentoCorrente.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_NreligamentoCorrente.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_NreligamentoCorrenteKeyPressed(evt);
            }
        });

        txt_sobrecargadesarme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_sobrecargadesarme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_sobrecargadesarmeKeyPressed(evt);
            }
        });

        txt_TReligamentoNorTens.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_TReligamentoNorTens.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_TReligamentoNorTensKeyPressed(evt);
            }
        });

        txt_correntenDesarme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_correntenDesarme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_correntenDesarmeKeyPressed(evt);
            }
        });

        txt_correntenRearme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_correntenRearme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_correntenRearmeKeyPressed(evt);
            }
        });

        jLabel65.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel65.setForeground(new java.awt.Color(0, 0, 109));
        jLabel65.setText("Corrente Neutro Desarme:");

        jLabel66.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel66.setForeground(new java.awt.Color(0, 0, 109));
        jLabel66.setText("Falta Fase Rearme:");

        jSeparator4.setOrientation(javax.swing.SwingConstants.VERTICAL);

        txt_faltafasedesarme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_faltafasedesarme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_faltafasedesarmeKeyPressed(evt);
            }
        });

        txt_faltafaseaviso.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_faltafaseaviso.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_faltafaseavisoKeyPressed(evt);
            }
        });

        jLabel67.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel67.setForeground(new java.awt.Color(0, 0, 109));
        jLabel67.setText("Nº Religamento Corrente:");

        jLabel68.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel68.setForeground(new java.awt.Color(0, 0, 109));
        jLabel68.setText("Inrush:");

        txt_inrush.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_inrush.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_inrushKeyPressed(evt);
            }
        });

        jLabel69.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel69.setForeground(new java.awt.Color(0, 0, 109));
        jLabel69.setText("Sobre Carga Rearme:");

        jLabel70.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel70.setForeground(new java.awt.Color(0, 0, 109));
        jLabel70.setText("Corrente Neutro Rearme:");

        txt_faltafaserearme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_faltafaserearme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_faltafaserearmeKeyPressed(evt);
            }
        });

        jLabel71.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel71.setForeground(new java.awt.Color(0, 0, 109));
        jLabel71.setText("Corrente Neutro Aviso:");

        txt_sobrecargaaviso.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_sobrecargaaviso.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_sobrecargaavisoKeyPressed(evt);
            }
        });

        txt_correntenAviso.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_correntenAviso.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_correntenAvisoKeyPressed(evt);
            }
        });

        jLabel72.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel72.setForeground(new java.awt.Color(0, 0, 109));
        jLabel72.setText("Vmax:");

        txt_vmax.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_vmax.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_vmaxKeyPressed(evt);
            }
        });

        jLabel73.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel73.setForeground(new java.awt.Color(0, 0, 109));
        jLabel73.setText("Sobre Carga Desarme:");

        txt_sobrecargarearme.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_sobrecargarearme.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_sobrecargarearmeKeyPressed(evt);
            }
        });

        jLabel74.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel74.setForeground(new java.awt.Color(0, 0, 109));
        jLabel74.setText("T. Religamento Nor Ten.");

        jLabel75.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel75.setForeground(new java.awt.Color(0, 0, 109));
        jLabel75.setText("Sobre Carga Aviso:");

        jLabel76.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel76.setForeground(new java.awt.Color(0, 0, 109));
        jLabel76.setText("Limite Sobre Tensao:");

        jLabel77.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel77.setForeground(new java.awt.Color(0, 0, 109));
        jLabel77.setText("Limite SubTensao:");

        jLabel79.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel79.setForeground(new java.awt.Color(0, 0, 109));
        jLabel79.setText("Int Status:");

        jSeparator5.setOrientation(javax.swing.SwingConstants.VERTICAL);

        txt_limiteSubTensao.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_limiteSubTensao.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_limiteSubTensaoKeyPressed(evt);
            }
        });

        txt_limitesobretensao.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_limitesobretensao.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_limitesobretensaoKeyPressed(evt);
            }
        });

        txt_status.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_status.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_statusKeyPressed(evt);
            }
        });

        txt_data.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_data.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_dataKeyPressed(evt);
            }
        });

        jLabel88.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel88.setForeground(new java.awt.Color(0, 0, 109));
        jLabel88.setText("Data:");

        jLabel78.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel78.setForeground(new java.awt.Color(0, 0, 109));
        jLabel78.setText("Intervalo 1:");

        txt_intervalo1.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_intervalo1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_intervalo1KeyPressed(evt);
            }
        });

        jLabel80.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel80.setForeground(new java.awt.Color(0, 0, 109));
        jLabel80.setText("Intervalo 2:");

        txt_intervalo2.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_intervalo2.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_intervalo2KeyPressed(evt);
            }
        });

        jLabel81.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel81.setForeground(new java.awt.Color(0, 0, 109));
        jLabel81.setText("Intervalo 3:");

        txt_intervalo3.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_intervalo3.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_intervalo3KeyPressed(evt);
            }
        });

        jLabel82.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel82.setForeground(new java.awt.Color(0, 0, 109));
        jLabel82.setText("Intervalo 4:");

        txt_intervalo4.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_intervalo4.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_intervalo4KeyPressed(evt);
            }
        });

        jLabel83.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel83.setForeground(new java.awt.Color(0, 0, 109));
        jLabel83.setText("Intervalo 5:");

        txt_intervalo5.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_intervalo5.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_intervalo5KeyPressed(evt);
            }
        });

        jLabel84.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel84.setForeground(new java.awt.Color(0, 0, 109));
        jLabel84.setText("T. Latencia Pos Religamento:");

        txt_TLatenciaReligamento.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_TLatenciaReligamento.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_TLatenciaReligamentoKeyPressed(evt);
            }
        });

        txt_intMed.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txt_intMed.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                txt_intMedKeyPressed(evt);
            }
        });

        jLabel85.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        jLabel85.setForeground(new java.awt.Color(0, 0, 109));
        jLabel85.setText("Int Med:");

        javax.swing.GroupLayout painelLayout = new javax.swing.GroupLayout(painel);
        painel.setLayout(painelLayout);
        painelLayout.setHorizontalGroup(
            painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(painelLayout.createSequentialGroup()
                        .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 515, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(painelLayout.createSequentialGroup()
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(painelLayout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txt_id, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txt_idReligadora, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(50, 50, 50)
                                .addComponent(jLabel49, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(28, 28, 28)
                                .addComponent(jLabel48, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(28, 28, 28)
                                .addComponent(jLabel50, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(28, 28, 28)
                                .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(painelLayout.createSequentialGroup()
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel4)
                                    .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txt_opmode, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_ka, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txt_mca, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addGap(1, 1, 1)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txt_icc, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_is, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cserv, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_ccurto, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cmax, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cneutro, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_cneutromax, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_ncsc, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_ncsot, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_ncsut, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                        .addComponent(jLabel28)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(txt_ptrafo, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel54, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel53, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel59, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel56, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel57, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel62, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel61, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel55, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel60, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel52, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jLabel29)
                                                .addComponent(jLabel58)))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txt_lalsoc, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_lacsoc, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(painelLayout.createSequentialGroup()
                                                .addGap(1, 1, 1)
                                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(txt_pacpot, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_correnteaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_correntedesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_carrenterearme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_subtensaoaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_subtensaodesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_subtensaorearme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_sobretensaoaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_sobretensaodesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_sobretensaorearme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(painelLayout.createSequentialGroup()
                                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jLabel75, javax.swing.GroupLayout.Alignment.TRAILING)
                                                        .addComponent(jLabel73, javax.swing.GroupLayout.Alignment.TRAILING)
                                                        .addComponent(jLabel69, javax.swing.GroupLayout.Alignment.TRAILING)
                                                        .addComponent(jLabel71, javax.swing.GroupLayout.Alignment.TRAILING)
                                                        .addComponent(jLabel65, javax.swing.GroupLayout.Alignment.TRAILING)
                                                        .addComponent(jLabel70, javax.swing.GroupLayout.Alignment.TRAILING)
                                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(jLabel64)
                                                            .addComponent(jLabel66)))
                                                    .addComponent(jLabel67, javax.swing.GroupLayout.Alignment.TRAILING))
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(txt_faltafasedesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_faltafaserearme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGroup(painelLayout.createSequentialGroup()
                                                        .addGap(1, 1, 1)
                                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(txt_sobrecargaaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(txt_sobrecargadesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(txt_sobrecargarearme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(txt_correntenAviso, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(txt_correntenDesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(txt_correntenRearme, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(txt_NreligamentoCorrente, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel78)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(txt_intervalo1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel63)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(txt_faltafaseaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel80)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(txt_intervalo2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel81)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(txt_intervalo3, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jLabel77, javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addComponent(jLabel79, javax.swing.GroupLayout.Alignment.TRAILING))
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(txt_limiteSubTensao, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_status, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel76)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(txt_limitesobretensao, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel82)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(txt_intervalo4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel83)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(txt_intervalo5, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel84)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(txt_TLatenciaReligamento, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel74)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(txt_TReligamentoNorTens, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jLabel68, javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addComponent(jLabel72, javax.swing.GroupLayout.Alignment.TRAILING))
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(txt_inrush, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(txt_vmax, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel88)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(txt_data, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createSequentialGroup()
                                                .addComponent(jLabel85)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(txt_intMed, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))))))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        painelLayout.setVerticalGroup(
            painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(txt_idReligadora, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel3))
                    .addGroup(painelLayout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(txt_id, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel50, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel48, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel49, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(painelLayout.createSequentialGroup()
                        .addGap(2, 2, 2)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel28)
                            .addComponent(txt_ptrafo, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel29)
                            .addComponent(txt_lalsoc, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_lacsoc, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel58))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_pacpot, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel54))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_correnteaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel53))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_correntedesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel59))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_carrenterearme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel56))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_subtensaoaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel57))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_subtensaodesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel62))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_subtensaorearme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel61))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_sobretensaoaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel55))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_sobretensaodesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel60))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_sobretensaorearme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel52)))
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(painelLayout.createSequentialGroup()
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(painelLayout.createSequentialGroup()
                                .addComponent(txt_opmode, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_ka, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel5))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_mca, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel6))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_icc, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel7))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_is, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel8))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_cserv, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel9))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_ccurto, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel11))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_cmax, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel10))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_cneutro, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel13))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_cneutromax, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel14))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_ncsc, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel12)))
                            .addGroup(painelLayout.createSequentialGroup()
                                .addGap(1, 1, 1)
                                .addComponent(jLabel4)))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_ncsot, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel15))
                        .addGap(15, 15, 15)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_ncsut, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel16)))
                    .addGroup(painelLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(painelLayout.createSequentialGroup()
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_intervalo4, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel82))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_intervalo5, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel83))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_TLatenciaReligamento, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel84))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_TReligamentoNorTens, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel74))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addComponent(txt_inrush, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(15, 15, 15)
                                        .addComponent(txt_vmax, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(painelLayout.createSequentialGroup()
                                        .addComponent(jLabel68)
                                        .addGap(15, 15, 15)
                                        .addComponent(jLabel72)))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel76)
                                    .addComponent(txt_limitesobretensao, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel77)
                                    .addComponent(txt_limiteSubTensao, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(15, 15, 15)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_status, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel79))
                                .addGap(18, 18, 18)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_intMed, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel85))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txt_data, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel88)))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(painelLayout.createSequentialGroup()
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(jLabel63)
                                        .addComponent(txt_faltafaseaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(jLabel64)
                                        .addComponent(txt_faltafasedesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_faltafaserearme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel66))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_sobrecargaaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel75))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_sobrecargadesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel73))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_sobrecargarearme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel69))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_correntenAviso, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel71))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_correntenDesarme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel65))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_correntenRearme, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel70))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_NreligamentoCorrente, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel67))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_intervalo1, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel78))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_intervalo2, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel80))
                                    .addGap(15, 15, 15)
                                    .addGroup(painelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txt_intervalo3, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel81)))
                                .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(painelLayout.createSequentialGroup()
                        .addGap(2, 2, 2)
                        .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout painelFundoLayout = new javax.swing.GroupLayout(painelFundo);
        painelFundo.setLayout(painelFundoLayout);
        painelFundoLayout.setHorizontalGroup(
            painelFundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelFundoLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(painel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        painelFundoLayout.setVerticalGroup(
            painelFundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelFundoLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(painel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(painelFundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(painelFundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void txt_ncsotKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_ncsotKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }  // TODO add your handling code here:
    }//GEN-LAST:event_txt_ncsotKeyPressed

    private void txt_ncsutKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_ncsutKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }  // TODO add your handling code here:
    }//GEN-LAST:event_txt_ncsutKeyPressed

    private void txt_idKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_idKeyPressed

    }//GEN-LAST:event_txt_idKeyPressed

    private void txt_idReligadoraKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_idReligadoraKeyPressed

        int key = evt.getKeyCode();

        if (key == KeyEvent.VK_ENTER) {
            //            idReligadora = Integer.parseInt(txt_idReligadora.getText());
            //            getGadosReligadora(idReligadora);
        }
    }//GEN-LAST:event_txt_idReligadoraKeyPressed

    private void txt_opmodeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_opmodeKeyPressed

        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
            // considerarEnterComoTab(txt_opmode);
        }
    }//GEN-LAST:event_txt_opmodeKeyPressed

    private void txt_kaKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_kaKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
            //  considerarEnterComoTab(txt_mmode);
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_kaKeyPressed

    private void txt_lalsocKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_lalsocKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }    // TODO add your handling code here:
    }//GEN-LAST:event_txt_lalsocKeyPressed

    private void txt_ptrafoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_ptrafoKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }  // TODO add your handling code here:
    }//GEN-LAST:event_txt_ptrafoKeyPressed

    private void txt_cservKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cservKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cservKeyPressed

    private void txt_isKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_isKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_isKeyPressed

    private void txt_cneutromaxKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cneutromaxKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cneutromaxKeyPressed

    private void txt_ncscKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_ncscKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_ncscKeyPressed

    private void txt_cmaxKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cmaxKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cmaxKeyPressed

    private void txt_cneutroKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_cneutroKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_cneutroKeyPressed

    private void txt_ccurtoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_ccurtoKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_ccurtoKeyPressed

    private void txt_iccKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_iccKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_iccKeyPressed

    private void txt_mcaKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_mcaKeyPressed
        int key = evt.getKeyCode();
        if (key == KeyEvent.VK_ENTER) {
        }        // TODO add your handling code here:
    }//GEN-LAST:event_txt_mcaKeyPressed

    private void jLabel48MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel48MouseClicked
anteriorRegistro();
        
//        int id = 1;
//        Configuracao cfg = operacao.getConfiguracao(id);
//        txt_id.setText(""+cfg.getId());
//        txt_idReligadora.setText(""+cfg.getId_religadora());
//         Date data = cfg.getDatetime();
//         
//       // System.out.println(cfg.getDatetime("data")+" - "+rs.getTime("data")); 
//       
//        
////        Date data = new Date(System.currentTimeMillis());
////        
//        SimpleDateFormat formatarDate = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
//         System.out.print("data: "+formatarDate.format(data));
          
//        //operacao.getConfiguracao(null);
            
        
    }//GEN-LAST:event_jLabel48MouseClicked

    private void jLabel48MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel48MouseEntered
        setCursor(new Cursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel48MouseEntered

    private void jLabel48MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel48MouseExited
        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));         // TODO add your handling code here:
    }//GEN-LAST:event_jLabel48MouseExited

    private void jLabel49MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel49MouseClicked
        //desabilitaCampos();
        primeiroRegistro();
     //   jButton2.setText("EDITAR");
    }//GEN-LAST:event_jLabel49MouseClicked

    private void jLabel49MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel49MouseEntered
        setCursor(new Cursor(Cursor.HAND_CURSOR));        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel49MouseEntered

    private void jLabel49MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel49MouseExited
        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel49MouseExited

    private void jLabel50MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel50MouseClicked
        //        desabilitaCampos();
                proximoRegistro();
        //        jButton2.setText("EDITAR");
    }//GEN-LAST:event_jLabel50MouseClicked

    private void jLabel50MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel50MouseEntered
        setCursor(new Cursor(Cursor.HAND_CURSOR));        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel50MouseEntered

    private void jLabel50MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel50MouseExited
        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));         // TODO add your handling code here:
    }//GEN-LAST:event_jLabel50MouseExited

    private void jLabel51MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel51MouseClicked
        //        desabilitaCampos();
                ultimoRegistro();
        //        jButton2.setText("EDITAR");
    }//GEN-LAST:event_jLabel51MouseClicked

    private void jLabel51MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel51MouseEntered
        setCursor(new Cursor(Cursor.HAND_CURSOR));        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel51MouseEntered

    private void jLabel51MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel51MouseExited
        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));         // TODO add your handling code here:
    }//GEN-LAST:event_jLabel51MouseExited

    private void txt_subtensaorearmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_subtensaorearmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_subtensaorearmeKeyPressed

    private void txt_correnteavisoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_correnteavisoKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_correnteavisoKeyPressed

    private void txt_sobretensaoavisoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_sobretensaoavisoKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_sobretensaoavisoKeyPressed

    private void txt_subtensaoavisoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_subtensaoavisoKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_subtensaoavisoKeyPressed

    private void txt_subtensaodesarmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_subtensaodesarmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_subtensaodesarmeKeyPressed

    private void txt_lacsocKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_lacsocKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_lacsocKeyPressed

    private void txt_carrenterearmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_carrenterearmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_carrenterearmeKeyPressed

    private void txt_pacpotKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_pacpotKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_pacpotKeyPressed

    private void txt_sobretensaorearmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_sobretensaorearmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_sobretensaorearmeKeyPressed

    private void txt_correntedesarmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_correntedesarmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_correntedesarmeKeyPressed

    private void txt_sobretensaodesarmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_sobretensaodesarmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_sobretensaodesarmeKeyPressed

    private void txt_NreligamentoCorrenteKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_NreligamentoCorrenteKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_NreligamentoCorrenteKeyPressed

    private void txt_sobrecargadesarmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_sobrecargadesarmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_sobrecargadesarmeKeyPressed

    private void txt_TReligamentoNorTensKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_TReligamentoNorTensKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_TReligamentoNorTensKeyPressed

    private void txt_correntenDesarmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_correntenDesarmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_correntenDesarmeKeyPressed

    private void txt_correntenRearmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_correntenRearmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_correntenRearmeKeyPressed

    private void txt_faltafasedesarmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_faltafasedesarmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_faltafasedesarmeKeyPressed

    private void txt_faltafaseavisoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_faltafaseavisoKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_faltafaseavisoKeyPressed

    private void txt_inrushKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_inrushKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_inrushKeyPressed

    private void txt_faltafaserearmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_faltafaserearmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_faltafaserearmeKeyPressed

    private void txt_sobrecargaavisoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_sobrecargaavisoKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_sobrecargaavisoKeyPressed

    private void txt_correntenAvisoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_correntenAvisoKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_correntenAvisoKeyPressed

    private void txt_vmaxKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_vmaxKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_vmaxKeyPressed

    private void txt_sobrecargarearmeKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_sobrecargarearmeKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_sobrecargarearmeKeyPressed

    private void txt_limiteSubTensaoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_limiteSubTensaoKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_limiteSubTensaoKeyPressed

    private void txt_limitesobretensaoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_limitesobretensaoKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_limitesobretensaoKeyPressed

    private void txt_statusKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_statusKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_statusKeyPressed

    private void txt_dataKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_dataKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_dataKeyPressed

    private void txt_intervalo1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_intervalo1KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_intervalo1KeyPressed

    private void txt_intervalo2KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_intervalo2KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_intervalo2KeyPressed

    private void txt_intervalo3KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_intervalo3KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_intervalo3KeyPressed

    private void txt_intervalo4KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_intervalo4KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_intervalo4KeyPressed

    private void txt_intervalo5KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_intervalo5KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_intervalo5KeyPressed

    private void txt_TLatenciaReligamentoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_TLatenciaReligamentoKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_TLatenciaReligamentoKeyPressed

    private void txt_intMedKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_intMedKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_intMedKeyPressed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FormConfiguracao.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new FormConfiguracao().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel71;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLabel jLabel73;
    private javax.swing.JLabel jLabel74;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel76;
    private javax.swing.JLabel jLabel77;
    private javax.swing.JLabel jLabel78;
    private javax.swing.JLabel jLabel79;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel80;
    private javax.swing.JLabel jLabel81;
    private javax.swing.JLabel jLabel82;
    private javax.swing.JLabel jLabel83;
    private javax.swing.JLabel jLabel84;
    private javax.swing.JLabel jLabel85;
    private javax.swing.JLabel jLabel88;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JPanel painel;
    private javax.swing.JPanel painelFundo;
    private javax.swing.JTextField txt_NreligamentoCorrente;
    private javax.swing.JTextField txt_TLatenciaReligamento;
    private javax.swing.JTextField txt_TReligamentoNorTens;
    private javax.swing.JTextField txt_carrenterearme;
    private javax.swing.JTextField txt_ccurto;
    private javax.swing.JTextField txt_cmax;
    private javax.swing.JTextField txt_cneutro;
    private javax.swing.JTextField txt_cneutromax;
    private javax.swing.JTextField txt_correnteaviso;
    private javax.swing.JTextField txt_correntedesarme;
    private javax.swing.JTextField txt_correntenAviso;
    private javax.swing.JTextField txt_correntenDesarme;
    private javax.swing.JTextField txt_correntenRearme;
    private javax.swing.JTextField txt_cserv;
    private javax.swing.JTextField txt_data;
    private javax.swing.JTextField txt_faltafaseaviso;
    private javax.swing.JTextField txt_faltafasedesarme;
    private javax.swing.JTextField txt_faltafaserearme;
    private javax.swing.JTextField txt_icc;
    private javax.swing.JTextField txt_id;
    private javax.swing.JTextField txt_idReligadora;
    private javax.swing.JTextField txt_inrush;
    private javax.swing.JTextField txt_intMed;
    private javax.swing.JTextField txt_intervalo1;
    private javax.swing.JTextField txt_intervalo2;
    private javax.swing.JTextField txt_intervalo3;
    private javax.swing.JTextField txt_intervalo4;
    private javax.swing.JTextField txt_intervalo5;
    private javax.swing.JTextField txt_is;
    private javax.swing.JTextField txt_ka;
    private javax.swing.JTextField txt_lacsoc;
    private javax.swing.JTextField txt_lalsoc;
    private javax.swing.JTextField txt_limiteSubTensao;
    private javax.swing.JTextField txt_limitesobretensao;
    private javax.swing.JTextField txt_mca;
    private javax.swing.JTextField txt_ncsc;
    private javax.swing.JTextField txt_ncsot;
    private javax.swing.JTextField txt_ncsut;
    private javax.swing.JTextField txt_opmode;
    private javax.swing.JTextField txt_pacpot;
    private javax.swing.JTextField txt_ptrafo;
    private javax.swing.JTextField txt_sobrecargaaviso;
    private javax.swing.JTextField txt_sobrecargadesarme;
    private javax.swing.JTextField txt_sobrecargarearme;
    private javax.swing.JTextField txt_sobretensaoaviso;
    private javax.swing.JTextField txt_sobretensaodesarme;
    private javax.swing.JTextField txt_sobretensaorearme;
    private javax.swing.JTextField txt_status;
    private javax.swing.JTextField txt_subtensaoaviso;
    private javax.swing.JTextField txt_subtensaodesarme;
    private javax.swing.JTextField txt_subtensaorearme;
    private javax.swing.JTextField txt_vmax;
    // End of variables declaration//GEN-END:variables

    private void primeiroRegistro() {                //METODO QUE CARREGA O ULTIMO REGISTRO DO BD  
        try {

            rs.first();
            idReligadora = rs.getInt("id_religadora");

            Configuracao cfg = operacao.getConfiguracao(idReligadora);
            System.out.println(idReligadora);
            txt_id.setText("" + cfg.getId());
            txt_idReligadora.setText("" + cfg.getId_religadora());
            txt_opmode.setText("" + cfg.getModo_operacao());
            txt_ka.setText("" + cfg.getKa());
            txt_mca.setText("" + cfg.getMca());
            txt_icc.setText("" + cfg.getIcc());
            txt_is.setText("" + cfg.getIs());
            txt_cserv.setText("" + cfg.getCserv());
            txt_ccurto.setText("" + cfg.getCcurto());
            txt_cmax.setText("" + cfg.getCmax());
            txt_cneutro.setText("" + cfg.getCneutro());
            txt_cneutromax.setText("" + cfg.getCneutromax());
            txt_ncsc.setText("" + cfg.getNcsc());
            txt_ncsot.setText("" + cfg.getNcsot());
            txt_ncsut.setText("" + cfg.getNcsut());
            txt_ptrafo.setText("" + cfg.getPtrafo());
            txt_lacsoc.setText("" + cfg.getLacsoc());
            txt_lalsoc.setText("" + cfg.getLalsoc());
            txt_pacpot.setText("" + cfg.getPacpot());
            txt_carrenterearme.setText("" + cfg.getCorrente_rearme());
            txt_correnteaviso.setText("" + cfg.getCorrente_aviso());
            txt_correntedesarme.setText("" + cfg.getCorrente_desarme());
            txt_subtensaoaviso.setText("" + cfg.getSub_tensao_aviso());
            txt_subtensaodesarme.setText("" + cfg.getSub_tensao_desarme());
            txt_subtensaorearme.setText("" + cfg.getSub_tensao_rearme());
            txt_sobretensaoaviso.setText("" + cfg.getSobre_tensao_aviso());
            txt_sobretensaodesarme.setText("" + cfg.getSobre_tensao_desarme());
            txt_sobretensaorearme.setText("" + cfg.getSobre_tensao_rearme());
            txt_faltafaseaviso.setText("" + cfg.getFalta_fase_aviso());
            txt_faltafasedesarme.setText("" + cfg.getFalta_fase_desarme());
            txt_faltafaserearme.setText("" + cfg.getFalta_fase_rearme());
            txt_sobrecargaaviso.setText("" + cfg.getSobrecarga_aviso());
            txt_sobrecargadesarme.setText("" + cfg.getSobrecarga_desarme());
            txt_sobrecargarearme.setText("" + cfg.getSobrecarga_rearme());
            txt_correntenAviso.setText("" + cfg.getCorrente_neutro_aviso());
            txt_correntenDesarme.setText("" + cfg.getCorrente_neutro_desarme());
            txt_correntenRearme.setText("" + cfg.getCorrente_neutro_rearme());
            txt_NreligamentoCorrente.setText("" + cfg.getNumero_religamentos_corrente());
            txt_intervalo1.setText("" + cfg.getIntervalo_1());
            txt_intervalo2.setText("" + cfg.getIntervalo_2());
            txt_intervalo3.setText("" + cfg.getIntervalo_3());
            txt_intervalo4.setText("" + cfg.getIntervalo_4());
            txt_intervalo5.setText("" + cfg.getIntervalo_5());
            txt_TLatenciaReligamento.setText("" + cfg.getTempo_latencia_pos_religamento());
            txt_TReligamentoNorTens.setText("" + cfg.getTempo_religamento_pos_normalizacao_tensao());
            txt_inrush.setText("" + cfg.getInrush());
            txt_vmax.setText("" + cfg.getVmax());
            txt_limiteSubTensao.setText("" + cfg.getLimite_subtensao());
            txt_limitesobretensao.setText("" + cfg.getLimite_sobre_tensao());
            txt_status.setText("" + cfg.getInt_status());
            txt_intMed.setText("" + cfg.getInt_med());
            txt_data.setText("" + cfg.getDatetime());


        } catch (Exception e2) {

            JOptionPane.showMessageDialog(this, "PRIMEIRO \n NÃO EXISTEM MAIS REGISTROS");
        }
    }
    
      private void anteriorRegistro() {                
        try {

             rs.previous();
            idReligadora = rs.getInt("id_religadora");

            Configuracao cfg = operacao.getConfiguracao(idReligadora);
            System.out.println(idReligadora);
            txt_id.setText("" + cfg.getId());
            txt_idReligadora.setText("" + cfg.getId_religadora());
            txt_opmode.setText("" + cfg.getModo_operacao());
            txt_ka.setText("" + cfg.getKa());
            txt_mca.setText("" + cfg.getMca());
            txt_icc.setText("" + cfg.getIcc());
            txt_is.setText("" + cfg.getIs());
            txt_cserv.setText("" + cfg.getCserv());
            txt_ccurto.setText("" + cfg.getCcurto());
            txt_cmax.setText("" + cfg.getCmax());
            txt_cneutro.setText("" + cfg.getCneutro());
            txt_cneutromax.setText("" + cfg.getCneutromax());
            txt_ncsc.setText("" + cfg.getNcsc());
            txt_ncsot.setText("" + cfg.getNcsot());
            txt_ncsut.setText("" + cfg.getNcsut());
            txt_ptrafo.setText("" + cfg.getPtrafo());
            txt_lacsoc.setText("" + cfg.getLacsoc());
            txt_lalsoc.setText("" + cfg.getLalsoc());
            txt_pacpot.setText("" + cfg.getPacpot());
            txt_carrenterearme.setText("" + cfg.getCorrente_rearme());
            txt_correnteaviso.setText("" + cfg.getCorrente_aviso());
            txt_correntedesarme.setText("" + cfg.getCorrente_desarme());
            txt_subtensaoaviso.setText("" + cfg.getSub_tensao_aviso());
            txt_subtensaodesarme.setText("" + cfg.getSub_tensao_desarme());
            txt_subtensaorearme.setText("" + cfg.getSub_tensao_rearme());
            txt_sobretensaoaviso.setText("" + cfg.getSobre_tensao_aviso());
            txt_sobretensaodesarme.setText("" + cfg.getSobre_tensao_desarme());
            txt_sobretensaorearme.setText("" + cfg.getSobre_tensao_rearme());
            txt_faltafaseaviso.setText("" + cfg.getFalta_fase_aviso());
            txt_faltafasedesarme.setText("" + cfg.getFalta_fase_desarme());
            txt_faltafaserearme.setText("" + cfg.getFalta_fase_rearme());
            txt_sobrecargaaviso.setText("" + cfg.getSobrecarga_aviso());
            txt_sobrecargadesarme.setText("" + cfg.getSobrecarga_desarme());
            txt_sobrecargarearme.setText("" + cfg.getSobrecarga_rearme());
            txt_correntenAviso.setText("" + cfg.getCorrente_neutro_aviso());
            txt_correntenDesarme.setText("" + cfg.getCorrente_neutro_desarme());
            txt_correntenRearme.setText("" + cfg.getCorrente_neutro_rearme());
            txt_NreligamentoCorrente.setText("" + cfg.getNumero_religamentos_corrente());
            txt_intervalo1.setText("" + cfg.getIntervalo_1());
            txt_intervalo2.setText("" + cfg.getIntervalo_2());
            txt_intervalo3.setText("" + cfg.getIntervalo_3());
            txt_intervalo4.setText("" + cfg.getIntervalo_4());
            txt_intervalo5.setText("" + cfg.getIntervalo_5());
            txt_TLatenciaReligamento.setText("" + cfg.getTempo_latencia_pos_religamento());
            txt_TReligamentoNorTens.setText("" + cfg.getTempo_religamento_pos_normalizacao_tensao());
            txt_inrush.setText("" + cfg.getInrush());
            txt_vmax.setText("" + cfg.getVmax());
            txt_limiteSubTensao.setText("" + cfg.getLimite_subtensao());
            txt_limitesobretensao.setText("" + cfg.getLimite_sobre_tensao());
            txt_status.setText("" + cfg.getInt_status());
            txt_intMed.setText("" + cfg.getInt_med());
            txt_data.setText("" + cfg.getDatetime());


        } catch (Exception e2) {

            JOptionPane.showMessageDialog(this, "ANTERIOR \n NÃO EXISTEM MAIS REGISTROS");
        }
    }
      
        private void proximoRegistro() {                
        try {

             rs.next();
            idReligadora = rs.getInt("id_religadora");

            Configuracao cfg = operacao.getConfiguracao(idReligadora);
            System.out.println(idReligadora);
            txt_id.setText("" + cfg.getId());
            txt_idReligadora.setText("" + cfg.getId_religadora());
            txt_opmode.setText("" + cfg.getModo_operacao());
            txt_ka.setText("" + cfg.getKa());
            txt_mca.setText("" + cfg.getMca());
            txt_icc.setText("" + cfg.getIcc());
            txt_is.setText("" + cfg.getIs());
            txt_cserv.setText("" + cfg.getCserv());
            txt_ccurto.setText("" + cfg.getCcurto());
            txt_cmax.setText("" + cfg.getCmax());
            txt_cneutro.setText("" + cfg.getCneutro());
            txt_cneutromax.setText("" + cfg.getCneutromax());
            txt_ncsc.setText("" + cfg.getNcsc());
            txt_ncsot.setText("" + cfg.getNcsot());
            txt_ncsut.setText("" + cfg.getNcsut());
            txt_ptrafo.setText("" + cfg.getPtrafo());
            txt_lacsoc.setText("" + cfg.getLacsoc());
            txt_lalsoc.setText("" + cfg.getLalsoc());
            txt_pacpot.setText("" + cfg.getPacpot());
            txt_carrenterearme.setText("" + cfg.getCorrente_rearme());
            txt_correnteaviso.setText("" + cfg.getCorrente_aviso());
            txt_correntedesarme.setText("" + cfg.getCorrente_desarme());
            txt_subtensaoaviso.setText("" + cfg.getSub_tensao_aviso());
            txt_subtensaodesarme.setText("" + cfg.getSub_tensao_desarme());
            txt_subtensaorearme.setText("" + cfg.getSub_tensao_rearme());
            txt_sobretensaoaviso.setText("" + cfg.getSobre_tensao_aviso());
            txt_sobretensaodesarme.setText("" + cfg.getSobre_tensao_desarme());
            txt_sobretensaorearme.setText("" + cfg.getSobre_tensao_rearme());
            txt_faltafaseaviso.setText("" + cfg.getFalta_fase_aviso());
            txt_faltafasedesarme.setText("" + cfg.getFalta_fase_desarme());
            txt_faltafaserearme.setText("" + cfg.getFalta_fase_rearme());
            txt_sobrecargaaviso.setText("" + cfg.getSobrecarga_aviso());
            txt_sobrecargadesarme.setText("" + cfg.getSobrecarga_desarme());
            txt_sobrecargarearme.setText("" + cfg.getSobrecarga_rearme());
            txt_correntenAviso.setText("" + cfg.getCorrente_neutro_aviso());
            txt_correntenDesarme.setText("" + cfg.getCorrente_neutro_desarme());
            txt_correntenRearme.setText("" + cfg.getCorrente_neutro_rearme());
            txt_NreligamentoCorrente.setText("" + cfg.getNumero_religamentos_corrente());
            txt_intervalo1.setText("" + cfg.getIntervalo_1());
            txt_intervalo2.setText("" + cfg.getIntervalo_2());
            txt_intervalo3.setText("" + cfg.getIntervalo_3());
            txt_intervalo4.setText("" + cfg.getIntervalo_4());
            txt_intervalo5.setText("" + cfg.getIntervalo_5());
            txt_TLatenciaReligamento.setText("" + cfg.getTempo_latencia_pos_religamento());
            txt_TReligamentoNorTens.setText("" + cfg.getTempo_religamento_pos_normalizacao_tensao());
            txt_inrush.setText("" + cfg.getInrush());
            txt_vmax.setText("" + cfg.getVmax());
            txt_limiteSubTensao.setText("" + cfg.getLimite_subtensao());
            txt_limitesobretensao.setText("" + cfg.getLimite_sobre_tensao());
            txt_status.setText("" + cfg.getInt_status());
            txt_intMed.setText("" + cfg.getInt_med());
            txt_data.setText("" + cfg.getDatetime());


        } catch (Exception e2) {

            JOptionPane.showMessageDialog(this, "PROXIMO \n NÃO EXISTEM MAIS REGISTROS");
        }
    }
        
          private void ultimoRegistro() {                
        try {

             rs.last();
            idReligadora = rs.getInt("id_religadora");

            Configuracao cfg = operacao.getConfiguracao(idReligadora);
            System.out.println(idReligadora);
             txt_id.setText("" + cfg.getId());
            txt_idReligadora.setText("" + cfg.getId_religadora());
            txt_opmode.setText("" + cfg.getModo_operacao());
            txt_ka.setText("" + cfg.getKa());
            txt_mca.setText("" + cfg.getMca());
            txt_icc.setText("" + cfg.getIcc());
            txt_is.setText("" + cfg.getIs());
            txt_cserv.setText("" + cfg.getCserv());
            txt_ccurto.setText("" + cfg.getCcurto());
            txt_cmax.setText("" + cfg.getCmax());
            txt_cneutro.setText("" + cfg.getCneutro());
            txt_cneutromax.setText("" + cfg.getCneutromax());
            txt_ncsc.setText("" + cfg.getNcsc());
            txt_ncsot.setText("" + cfg.getNcsot());
            txt_ncsut.setText("" + cfg.getNcsut());
            txt_ptrafo.setText("" + cfg.getPtrafo());
            txt_lacsoc.setText("" + cfg.getLacsoc());
            txt_lalsoc.setText("" + cfg.getLalsoc());
            txt_pacpot.setText("" + cfg.getPacpot());
            txt_carrenterearme.setText("" + cfg.getCorrente_rearme());
            txt_correnteaviso.setText("" + cfg.getCorrente_aviso());
            txt_correntedesarme.setText("" + cfg.getCorrente_desarme());
            txt_subtensaoaviso.setText("" + cfg.getSub_tensao_aviso());
            txt_subtensaodesarme.setText("" + cfg.getSub_tensao_desarme());
            txt_subtensaorearme.setText("" + cfg.getSub_tensao_rearme());
            txt_sobretensaoaviso.setText("" + cfg.getSobre_tensao_aviso());
            txt_sobretensaodesarme.setText("" + cfg.getSobre_tensao_desarme());
            txt_sobretensaorearme.setText("" + cfg.getSobre_tensao_rearme());
            txt_faltafaseaviso.setText("" + cfg.getFalta_fase_aviso());
            txt_faltafasedesarme.setText("" + cfg.getFalta_fase_desarme());
            txt_faltafaserearme.setText("" + cfg.getFalta_fase_rearme());
            txt_sobrecargaaviso.setText("" + cfg.getSobrecarga_aviso());
            txt_sobrecargadesarme.setText("" + cfg.getSobrecarga_desarme());
            txt_sobrecargarearme.setText("" + cfg.getSobrecarga_rearme());
            txt_correntenAviso.setText("" + cfg.getCorrente_neutro_aviso());
            txt_correntenDesarme.setText("" + cfg.getCorrente_neutro_desarme());
            txt_correntenRearme.setText("" + cfg.getCorrente_neutro_rearme());
            txt_NreligamentoCorrente.setText("" + cfg.getNumero_religamentos_corrente());
            txt_intervalo1.setText("" + cfg.getIntervalo_1());
            txt_intervalo2.setText("" + cfg.getIntervalo_2());
            txt_intervalo3.setText("" + cfg.getIntervalo_3());
            txt_intervalo4.setText("" + cfg.getIntervalo_4());
            txt_intervalo5.setText("" + cfg.getIntervalo_5());
            txt_TLatenciaReligamento.setText("" + cfg.getTempo_latencia_pos_religamento());
            txt_TReligamentoNorTens.setText("" + cfg.getTempo_religamento_pos_normalizacao_tensao());
            txt_inrush.setText("" + cfg.getInrush());
            txt_vmax.setText("" + cfg.getVmax());
            txt_limiteSubTensao.setText("" + cfg.getLimite_subtensao());
            txt_limitesobretensao.setText("" + cfg.getLimite_sobre_tensao());
            txt_status.setText("" + cfg.getInt_status());
            txt_intMed.setText("" + cfg.getInt_med());
            txt_data.setText("" + cfg.getDatetime());


        } catch (Exception e2) {

            JOptionPane.showMessageDialog(this, "ULTIMO  \n NÃO EXISTEM MAIS REGISTROS");
        }
    }


}
